package com.air.airbnb.modular.system.model;

import com.baomidou.mybatisplus.enums.IdType;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import java.io.Serializable;

/**
 * <p>
 * 用户表
 * </p>
 *
 * @author zhihuian
 * @since 2018-12-06
 */
@TableName("airbnb_user")
public class AirbnbUser extends Model<AirbnbUser> {

    private static final long serialVersionUID = 1L;

    /**
     * 主键id
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;
    /**
     * 名称
     */
    @TableField("user_name")
    private String userName;
    /**
     * 身份证
     */
    @TableField("user_number")
    private String userNumber;
    /**
     * 电话
     */
    @TableField("user_phone")
    private String userPhone;
    /**
     * 性别
     */
    @TableField("user_sex")
    private String userSex;


    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getUserNumber() {
        return userNumber;
    }

    public void setUserNumber(String userNumber) {
        this.userNumber = userNumber;
    }

    public String getUserPhone() {
        return userPhone;
    }

    public void setUserPhone(String userPhone) {
        this.userPhone = userPhone;
    }

    public String getUserSex() {
        return userSex;
    }

    public void setUserSex(String userSex) {
        this.userSex = userSex;
    }

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "AirbnbUser{" +
        ", id=" + id +
        ", userName=" + userName +
        ", userNumber=" + userNumber +
        ", userPhone=" + userPhone +
        ", userSex=" + userSex +
        "}";
    }
}
